home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / libraries / unknown < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.3 KB  |  20 lines

  1.           unknown cmdName ?arg arg ...?
  2.                This command doesn't actually exist as part of Tcl, but
  3.                Tcl will invoke it  if  it  does  exist.   If  the  Tcl
  4.                interpreter  encounters  a command name for which there
  5.                is not a defined  command,  then  Tcl  checks  for  the
  6.                existence  of  a command named unknown.  If there is no
  7.                such command, then the interpeter returns an error.  If
  8.                the  unknown  command  exists,  then it is invoked with
  9.                arguments consisting of the fully-substituted name  and
  10.                arguments  for  the original non-existent command.  The
  11.                unknown command typically does  things  like  searching
  12.                through  library  directories  for  a command procedure
  13.                with the name cmdName, or expanding abbreviated command
  14.                names   to   full-length,  or  automatically  executing
  15.                unknown commands as UNIX sub-processes.  In some  cases
  16.                (such  as  expanding abbreviations) unknown will change
  17.                the original command slightly and then (re-)execute it.
  18.                The result of the unknown command is used as the result
  19.                for the original non-existent command.
  20.